﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using iSun.BLL.Base;
using iSun.Entity;

namespace iSun.BLL
{
    public class BDatPhraseDetail : BaseBussnies
    {
        /// <summary>
        /// 根据Value获取字典数据
        /// </summary>
        /// <param name="ClassId">ID</param>
        /// <returns></returns>
        public IList<DatPhraseDetail> GetDatPhraseDetailByClassValue(string ClassValue)
        {
            this.entity = new DatPhraseDetail();
            return GetEntitysBySqlComm<DatPhraseDetail>("select * from DatPhraseDetail where ClassID=(select ClassID from DatPhraseClass where ClassValue='" + ClassValue + "') order by Seq");
        }
    }
}
